-- GENERATED SPELL FOR [Nerub'ar Web Lord] --


function spell0_25294(pUnit, Event) --@Blinding Swarm,Self--
pUnit:FullCastSpellOnTarget(50284,pUnit)
pUnit:RegisterEvent('Sorts_25294', 5000, 1)
end

function Sorts_25294(pUnit, Event)
local choix_sorts_25294 = math.random(0, 0)
if choix_sorts_25294 == 0 then
pUnit:RegisterEvent('spell0_25294', 1, 1)
end
end

function mob25294_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25294', math.random(1500, 3000), 1)
end

function mob25294_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25294_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25294_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25294, 1, 'mob25294_Action')
RegisterUnitEvent(25294, 2, 'mob25294_Leave')
RegisterUnitEvent(25294, 3, 'mob25294_Kill')
RegisterUnitEvent(25294, 4, 'mob25294_Die')
